<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">

                    <div class="columns pull-right" role="group">
                        <button class="btn btn-success" onclick="reLoad()">
                            <i class="fa fa-search" aria-hidden="true"></i>查询
                        </button>
                    </div>

                    <button shiro:hasPermission="reservationBrandCategory:manage:manage" type="button"
                            class="btn btn-primary" title="在根节点下添加菜单" onclick="add()">
                        <i class="fa fa-plus" aria-hidden="true"></i>添加
                    </button>

                    <div class="pull-right search col-md-2 nopadding">
                        <input id="queryItem" type="text" class="form-control" placeholder="商户名/品牌名称">
                    </div>

<!--                    <div class="columns pull-right col-md-1 nopadding">-->
<!--                        <input type="text" class=" form-control" id="createTimeEnd" name="createTimeEnd" placeholder="订单创建结束时间"-->
<!--                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"-->
<!--                               style="background-color: #fff;" readonly="readonly"/>-->
<!--                    </div>-->
<!--                    -->
<!--                    <div class="columns pull-right">-->
<!--                        <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">-->
<!--                            <i class="fa fa-exchange"></i>-->
<!--                        </label>-->
<!--                    </div>-->
<!--                    -->
<!--                    <div class="columns pull-right col-md-1 nopadding">-->
<!--                        <input type="text" class=" form-control" id="createTimeStart" name="createTimeStart" placeholder="订单创建开始时间"-->
<!--                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"-->
<!--                               style="background-color: #fff;" readonly="readonly"/>-->
<!--                    </div>-->

                    <div class="columns pull-right">
                        <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">
                            <i class="fa fa-exchange"></i>
                        </label>
                    </div>

                    <input type="hidden" name="centreId" th:value="${centreId}" th:if="${flag} == '1'">
                    <div class="columns pull-right col-md-2 nopadding" th:if="${flag} == '0'">
                        <select data-placeholder="商户" class="form-control chosen-select" name="centreId" tabindex="2">
                            <option value="">选择商户</option>
                            <option th:each="item: ${centreList}" th:text="${item.name}" th:value="${item.centreId}"></option>
                        </select>
                    </div>
                </div>

                <table id="detailTable" data-mobile-responsive="true"></table>
            </div>
        </div>
    </div>

    <div>
        <script type="text/javascript">
            var s_add_h = 'hidden';
            var s_edit_h = 'hidden';
            var s_remove_h = 'hidden';
        </script>
    </div>
    <div shiro:hasPermission="reservationBrandCategory:manage:add">
        <script type="text/javascript">
            s_add_h = '';
        </script>
    </div>
    <div shiro:hasPermission="reservationBrandCategory:manage:edit">
        <script type="text/javascript">
            s_edit_h = '';
        </script>
    </div>
    <div shiro:hasPermission="reservationBrandCategory:manage:remove">
        <script type="text/javascript">
            var s_remove_h = '';
        </script>
    </div>

</div>
<div th:include="include :: footer"></div>
<script src="/js/appjs/reservation/brandCategory/manage.js"></script>
</body>
</html>
